package org.ihelpuoo.orm.handler.http;

import java.util.List;

import org.ihelpuoo.orm.IIIException;
import org.ihelpuoo.orm.IIIManual;
import org.ihelpuoo.orm.ObjectRule;
import org.ihelpuoo.orm.filter.FieldFilter;
import org.ihelpuoo.orm.filter.Filter;
import org.ihelpuoo.orm.handler.FieldHandlers;
import org.ihelpuoo.orm.handler.MicroObjectProcessor;
import org.ihelpuoo.util.Pager;

public class HttpProcessor extends MicroObjectProcessor
{

	public HttpProcessor(IIIManual manual)
	{
		super(manual);
		this.getFieldHandlers = new FieldHandlers(new HttpReadNormalFieldHandler(this),
				new HttpReadListFieldHandler(this),new HttpReadArrayFieldHandler(this),
				new HttpReadMapFieldHandler(this),new HttpReadObjectFieldHandler(this));
	}

	@Deprecated
	@Override
	public boolean delete(ObjectRule r, Object src, Object obj, FieldFilter ignore) throws IIIException
	{
		throw new IIIException(this.getClass().getName() + " do not support deleteBean()!");
	}

	@Deprecated
	@Override
	public int delete(ObjectRule r, Object src, List list, int off, int len)
			throws IIIException
	{
		throw new IIIException(this.getClass().getName() + " do not support deleteBeanList()!");
	}

	@Deprecated
	@Override
	public Object insert(ObjectRule r, Object src, Object obj, FieldFilter actived,
			FieldFilter locked) throws IIIException
	{
		throw new IIIException(this.getClass().getName() + " do not support insertBean()!");
	}

	@Deprecated
	@Override
	public List query(ObjectRule r, Object src, Class beanType, Filter filter,
			FieldFilter actived, FieldFilter locked, Pager pager, Object refer) throws IIIException
	{
		throw new IIIException(this.getClass().getName() + " do not support queryBeans()!");
	}

	@Deprecated
	@Override
	public Object update(ObjectRule r, Object src, Object obj, FieldFilter actived,
			FieldFilter locked) throws IIIException
	{
		throw new IIIException(this.getClass().getName() + " do not support deleteBean()!");
	}

}
